import http from '@/utils/http';
import request from '@/utils/request';
/*
 *  user
 * */

export async function fetchTenantList(body) {
  return http.get('/sys/tenant/list', body);
}

export async function fetchMenuTree(body) {
  return http.get('/sys/tenant/id', body);
}

export async function fetchMenuTreeByAdmin(body) {
  return http.get('/sys/tenant/menus', body);
}

export async function doAddTenant(body) {
  return http.post('/sys/tenant/add', body);
}

export async function doEditTenant(body) {
  return http.post('/sys/tenant/edit', body);
}

export async function doRemoveList(body) {
  return http.postFormData('/sys/tenant/delete', body);
}

export async function doResetPassword(body) {
  return http.post('/sys/user/restPwd', body);
}

